<?php
namespace ff\base;
use ff\network\Request;


abstract class Controller
{
    public $request;
    public $defaultAction = 'Index';

    public function beforeAction()
    {
    }

    public function afterAction()
    {
    }

    public function __construct(Request $request)
    {        
        $this->request = $request;
    }
    public function checkmethod($method){
        $methods = explode('|',$method);
        if(in_array($this->request->method,$methods)){
            return TRUE;
        }else{
            return FALSE;
        }

    }

}
